package spacecrack;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable = "true")
//@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public class GameEvent {
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

//	@Persistent
//	private Game game;

	@Persistent
	private String message;

	public GameEvent(Game game, String message) {
//		this.game = game;
		this.message = message;
	}

	public Key getKey() { return key; }
//	public Game getGame() { return game; }
	public String getMessage() { return message; }
}
